package com.apes.auto.maintain.model;

import com.apes.framework.jpa.ApesBean;
import com.apes.framework.jpa.DefaultPersistListener;
import com.apes.framework.jpa.comment.Comment;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.SelectBeforeUpdate;

import javax.persistence.*;

/**
 * @ClassName LevelOil
 * @Description 力洋采集油液数据
 * @Author pengyb
 * @Date 2019/8/8 16:53
 * @Version 1.0
 **/
@Getter
@Setter
@SelectBeforeUpdate
@DynamicInsert
@DynamicUpdate
@Entity
@EntityListeners(DefaultPersistListener.class)
@Table(name = LevelOil.CONST_TABLE_NAME)
public class LevelOil implements ApesBean {
        public static final String CONST_TABLE_NAME="vin114_oil";
    @Id
    @Column(name = "levelID", length = 32)
    @Comment("levelID")
    private String levelID;


    @Column(name = "JCYLX", length = 16)
    @Comment("基础油类型")
    private String JCYLX;

    @Column(name = "JB", length = 16)
    @Comment("级别")
    private String JB;


    @Column(name = "GG", length = 16)
    @Comment("规格")
    private String GG;

    @Column(name = "BYJZL", length = 16)
    @Comment("保养加注量")
    private String BYJZL;

    @Column(name = "DXJZL", length = 16)
    @Comment("大修加注量")
    private String DXJZL;

    @Column(name = "JYGHZQLC", length = 16)
    @Comment("建议更换周期里程(公里)")
    private String JYGHZQLC;

    @Column(name = "JYGHZQSJ", length = 16)
    @Comment("建议更换周期时间(个月)")
    private String JYGHZQSJ;

    @Column(name = "JSZL", length = 16)
    @Comment("技术资料")
    private String JSZL;
}
